﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BuildPlannerLib.SimEvents;

namespace BuildPlannerLib.Terran.SimEvents
{
    // Derived class from Event for MULEs returning minerals
    public class MULEReturnMinerals : SimEvent
    {
        // Basic Constructor with parameters for parent build and time
        public MULEReturnMinerals(Build build, int time)
        {
            Build = build;
            Time = time;
        }

        // Adds minerals from the return
        public override void Execute()
        {
            Build.Player.Minerals.Change(30);
        }
    }
}
